/*类名：分页封装类*/
/*
 	 * 创建人：daizb
 	 * 创建时间：2015/11/11
 	 * 备注：新建
*/
package com.maycari.captainbi.common.bo;

import java.io.Serializable;

/**
 * 分页对象
 */
public class PageBean implements Serializable {

    /**
     * 序列id
     */
    private static final long serialVersionUID = -1855574134779989167L;
    /**
     * 总条数
     */
    private int pageCount;
    /**
     * 每页显示条数
     */
    private int pageSize = 20;
    /**
     * 当前页码
     */
    private int pageIndex = 1;
    /**
     * 总页数
     */
    private int pageNum;

    public PageBean(){
        super();
    }
    public PageBean(int pageSize, int pageIndex){
        this.pageSize = pageSize;
        this.pageIndex = pageIndex;
    }
    public int getPageCount() {
        return pageCount;
    }
    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }
    public int getPageSize() {
        return pageSize;
    }
    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
    public int getPageIndex() {
        return pageIndex;
    }
    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }
    public int getPageNum() {
        return pageNum;
    }
    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    /**
     * 当前页的第一条记录
     */
    public int getStartPageIndex() {
        return (pageIndex-1)*pageSize;
    }

}
